// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_FIN_ACCOUNTING_VOUCHER
// * CreateDate    : 2012/2/2 10:17:12
// * Creater       : CodeSmith
// * LastChangeDate: 2012/2/2 10:17:12
// * LastChanger   : 2012/2/2 10:17:12
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class FinAccountingVoucherTable : TableInfo
    {
		public const string C_TableName = "FIN_ACCOUNTING_VOUCHER";
		
		public const string C_VOUCHER_ID = "VOUCHER_ID";
		public const string C_ACCOUNTING_DATE = "ACCOUNTING_DATE";
		public const string C_VOUCHER_NO = "VOUCHER_NO";
		public const string C_TOTAL_DEBIT_AMOUNT = "TOTAL_DEBIT_AMOUNT";
		public const string C_TOTAL_CREDIT_AMOUNT = "TOTAL_CREDIT_AMOUNT";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_STATUS = "STATUS";
		
		public FinAccountingVoucherTable()
        {
            _tableName = "FIN_ACCOUNTING_VOUCHER";
        }
		
		protected static FinAccountingVoucherTable _current;
        public static FinAccountingVoucherTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new FinAccountingVoucherTable();

            _current.Add(C_VOUCHER_ID, new ColumnInfo(C_VOUCHER_ID,"VoucherId", true, typeof(string)));
            _current.Add(C_ACCOUNTING_DATE, new ColumnInfo(C_ACCOUNTING_DATE,"AccountingDate", false, typeof(DateTime)));
            _current.Add(C_VOUCHER_NO, new ColumnInfo(C_VOUCHER_NO,"VoucherNo", false, typeof(string)));
            _current.Add(C_TOTAL_DEBIT_AMOUNT, new ColumnInfo(C_TOTAL_DEBIT_AMOUNT,"TotalDebitAmount", false, typeof(decimal)));
            _current.Add(C_TOTAL_CREDIT_AMOUNT, new ColumnInfo(C_TOTAL_CREDIT_AMOUNT, "TotalCreditAmount", false, typeof(decimal)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo VOUCHER_ID
        {
            get { return this[C_VOUCHER_ID]; }
        }
		
		public ColumnInfo ACCOUNTING_DATE
        {
            get { return this[C_ACCOUNTING_DATE]; }
        }
		
		public ColumnInfo VOUCHER_NO
        {
            get { return this[C_VOUCHER_NO]; }
        }
		
		public ColumnInfo TOTAL_DEBIT_AMOUNT
        {
            get { return this[C_TOTAL_DEBIT_AMOUNT]; }
        }
		
		public ColumnInfo TOTAL_CREDIT_AMOUNT
        {
            get { return this[C_TOTAL_CREDIT_AMOUNT]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

